<?php
/**
 * Product:     One-Page Checkout Booster
 * Package:     Gold_Gonepage_1.1.1_94708
 * Purchase ID: 9CBm2i1g9YwZZ6QK4IjUneSwxlnJsImwioL1MUWAXd
 * Generated:   2011-07-15 10:07:59
 * File path:   app/design/frontend/base/default/template/gonepage/compact/review/cart.phtml
 * Copyright:   (c) 2011 GOLD, Inc.
 */
?>
<?php echo $this->getChildHtml('items_before'); ?>
<div id="checkout-review-table-wrapper">

    <table id="shopping-cart-table" class="data-table cart-table compact-cart">
        <col />
        <col width="1" />
        <col width="1" />
        <!--col width="1" /-->

    <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
        <thead>
            <tr>
                <th rowspan="<?php echo $mergedCells; ?>"><span class="nobr"><?php echo $this->__('Product Name') ?></span></th>
                <th rowspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Qty') ?></th>
                <th class="a-center" colspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Subtotal') ?></th>
                <!--th rowspan="<?php echo $mergedCells; ?>" class="a-center">&nbsp;</th-->
            </tr>
            <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
            <tr>
                <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
                <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
                <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
                <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
            </tr>
            <?php endif; ?>
        </thead>
        <tbody>
        <?php foreach($this->getItems() as $_item): ?>
            <?php echo $this->getItemHtml($_item) ?>
        <?php endforeach ?>
        </tbody>
        <?php echo $this->getChildHtml('totals'); ?>
    </table>

</div>
<?php echo $this->getChildHtml('items_after'); ?> 
<script type="text/javascript">
//<![CDATA[
    decorateTable('checkout-review-table');
    truncateOptions();
//]]>
</script>
    
<script type="text/javascript">
//<![CDATA[  
    cart = new Gcart('review', 'checkout-step-review', gonepage, {
            updateOptionsUrl :  '<?php echo $this->getUrl('gonepage/cart/updateItemOptions', array('_secure'=>true)) ?>',
            updatePostUrl :     '<?php echo $this->getUrl('gonepage/cart/updatePost', array('_secure'=>true)) ?>',
            deleteUrl :         '<?php echo $this->getUrl('gonepage/cart/delete', array('_secure'=>true)) ?>'
        }, {
            doCheckErrors : false,
            isLoadWaiting : true,
            isUpdateOnReload : false
        } );
    cart.initCart('.product-options', '.gitemqty', '.btn-increase', '.btn-decrease', '.btn-remove2', '.btn-move-to-wishlist');

    cart.setReloadSteps(['messages']);
    if (gonepage.getStep('shipping_method'))
    {
        cart.addReloadSteps(['shipping_method']);    
    } else {
        cart.addReloadSteps(['payment', 'review']);
    } 
    
    if (gonepage.getStep('giftmessage'))
    {
        cart.addReloadSteps(['giftmessage']);     
    }
    
    if (gonepage.getStep('ggiftwrap'))
    {
        cart.addReloadSteps(['ggiftwrap']);     
    }
    
    gonepage.setStep('review', cart);   
//]]>
</script>